package com.yang.apis.article.fallback;


import com.yang.apis.article.IArticleClient;
import com.yang.model.article.dtos.ArticleDto;
import com.yang.model.common.dtos.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class IArticleClientFallback implements IArticleClient {
    @Override
    public ResponseResult saveArticle(ArticleDto dto) {
        log.info("IArticleClientFallback saveArticle 调用失败，启用降级");
        return ResponseResult.onFallBackError();
    }
}
